package com.epoint.bizlogic.activityinfo;

import java.util.List;

import com.epoint.bizlogic.activityinfo.domain.ActivityInfo;
import com.epoint.bizlogic.activityinfo.domain.ActivityInfoVo;
import com.epoint.dao.ActivityInfoDao;

public class ActivityInfoService
{

    ActivityInfoDao activityInfoDao = new ActivityInfoDao();
    
    /**
     * 查询活动信息 
     * @param pageIndex 页号
     * @param pageSize 页面大小
     * @return
     */
    public List<ActivityInfoVo> queryActivityInfo(Integer pageIndex, Integer pageSize) {
        return activityInfoDao.queryActivityInfo(pageIndex, pageSize);
    }

     /**
         * 获取活动id
     * @param clubId id
     * @return
     */
    public String getActivityId(String clubId) {
        return activityInfoDao.getActivityId(clubId);
    }

    /**
     * 新增活动信息
     * @param activityInfo 活动信息
     * @return 条数
     */
    public int addActivityInfo(ActivityInfo activityInfo) {
        return activityInfoDao.addActivityInfo(activityInfo);
    }

    /**
     * 删除活动信息
     * @param activityId
     * @return
     */
    public int deleteActivityInfo(String activityId) {
        return activityInfoDao.deleteActivityInfo(activityId);
    }
}
